package Singleton;
/**
 * @Author: Cjj
 * 2025/4/4 14:42
 */
public class VegBurger extends Burger{
    @Override
    public String name() {
        return "XM";
    }

    @Override
    public float price() {
        return 2.5f;
    }

  public class ChildBurger extends Burger{
      @Override
      public String name() {
          return "Chicken";
      }

      @Override
      public float price() {
          return 56.8f;
      }
  }

  public class Coke extends ColdDrink{
      @Override
      public String name() {
          return "Coke";
      }

      @Override
      public float price() {
          return 30.0f;
      }
  }

  public class Pepsi extends ColdDrink{
      @Override
      public String name() {
          return "Pepsi";
      }

      @Override
      public float price() {
          return 40.0f;
      }
  }
}
